#ifndef GLOBAL_H_
#define GLOBAL_H_


//rs485 chips
#define def_selfChip 3
#define def_IMUChip 5
#define def_wifiChip 4
#define def_GPSChip 6


//LED pins
#define def_LED_red 9
#define def_LED_org 7

//buzzer
#define def_Buzzer 8

//baud rates
#define def_baudPC 38400
#define def_baudIMU 38400
#define def_baudGPS	38400
#define def_baudWIFI 9600

//warden defs, probably move/change
#define BOUND_POINTS 4
#define DANGER_ZONE_DIST .000075

typedef struct{
        long lat;
        long lon;
		int confidence;
} Coordinate;

typedef struct{
		int ang;
		long mag;
} Vector;

#endif